package cn.yht.wang.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.util.Date;
import java.util.List;

//selectRolesByUserId  方法如果没有 @NoArgsConstructor @AllArgsConstructor 会报错
//https://blog.csdn.net/qq_43473129/article/details/122852420
//https://blog.csdn.net/weixin_38067745/article/details/105287980
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Data
@ApiModel(description = "用户Model")
public class SysRole {
    @ApiModelProperty(value = "用户ID", name = "id",example = "")
    private long id;

    @NotBlank(message = "用户名不能为空")
    @ApiModelProperty(value = "用户名", name = "username", required = true, example = "liqk")
    private String RoleName;


    @ApiModelProperty(value = "描述", name = "roleDescription", required = false, example = "描述信息")
    private String RoleDescription;

    private  Long CreateBy;

    private Date CreateTime;

    private  Integer Enabled;

    private SysUser user;

    private List<SysPrivilege> privilegeList;
}
